package com.atguigu.gulimall.gulimallauthserver.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * 视图映射配置
 *
 * @author xiaoping
 * @create 2020/6/29 20:30
 * @since 1.0.0
 */
@Configuration
public class GulimallWebConfig implements WebMvcConfigurer {


    /**
     * 不需要处理逻辑，只是简单展示页面，可进行配置
     * @param registry
     */
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
//        registry.addViewController("/login.html").setViewName("login");
        registry.addViewController("/reg.html").setViewName("reg");
    }
}
